package com.chat.entry.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.chat.entry.enums.MessageType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群聊消息表
 * </p>
 *
 * @author author
 * @since 2025-09-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("group_message")
@ApiModel(value="GroupMessage对象", description="群聊消息表")
public class GroupMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "群聊id")
    private Integer groupId;

    @ApiModelProperty(value = "发送者id")
    private Integer senderId;

    @ApiModelProperty(value = "发送内容")
    private String content;

    @ApiModelProperty(value = "消息类型 (1：文字， 2：emoji 3：图片， 4：视频)")
    private MessageType type;

    @ApiModelProperty(value = "发送时间")
    private LocalDateTime createTime;


}
